
/**
 * Created by smp on 2017/6/6.
 */
var modelPath=ROOT_PATH+'/majorHazard/statisticsAnalysis/';

WindowManager.openLayer({
    type: 2,
    title: '查询条件',
    area: ['400px', '40%'],
    content: modelPath + 'select.shtml',
    callBack:function(data){
        $('#dg1').datagrid({
            method: 'post',
            url:  modelPath + 'activityRecordStatistics.shtml',
            queryParams:{
                year:data.year,
                name:data.name
            },
            // idField: 'id',
            fitColumns: true,
            pagination: true,
            rownumbers: true,
            singleSelect:true,
            sortOrder: true,
            striped: true,
            fit: true,
            columns: [[
                {field: 'num', title: '数量'}
            ]]
        });

    }
});
